//
//  JingXiaoViewController.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/3/8.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "JingXiaoViewController.h"


#import "DCNavTabBarController.h"
#import "SalesViewController.h"//销售动态
#import "BackMoneyViewController.h"//回款动态
#import "AverageViewController.h"//均价动态

@interface JingXiaoViewController ()

@end

@implementation JingXiaoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"销售动态";
   
    SalesViewController *salesVC = [[SalesViewController alloc] init];
    salesVC.title = @"销售动态";
    
    BackMoneyViewController *backMoneyVC = [[BackMoneyViewController alloc] init];
    backMoneyVC.title = @"均价动态";
    
//    AverageViewController *averageVC = [[AverageViewController alloc] init];
//    averageVC.title = @"均价动态";
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, LL_StatusBarAndNavigationBarHeight, B_WIDTH, 1)];
    [self.view addSubview:view];
    
    NSArray *subViewControllers = @[salesVC,backMoneyVC];
    
    DCNavTabBarController *tabBarVC = [[DCNavTabBarController alloc]initWithSubViewControllers:subViewControllers];
    tabBarVC.view.frame = CGRectMake(0, LL_StatusBarAndNavigationBarHeight, B_WIDTH, B_HEIGHT - LL_StatusBarAndNavigationBarHeight);
    [self.view addSubview:tabBarVC.view];
    [self addChildViewController:tabBarVC];

    
}












- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
